import time
from selenium import webdriver
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
driver.get('https://www.baidu.com')
driver.maximize_window()
time.sleep(2)
driver.find_element(By.ID,'kw').send_keys('python')
driver.find_element(By.ID,'su').click()
time.sleep(2)
tag = driver.find_elements(By.PARTIAL_LINK_TEXT,'菜鸟教程')
driver.execute_script('arguments[0].scrollIntoView();',tag[1])
time.sleep(4)